<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8">
	<title>文件上传页面</title>
	<link rel="stylesheet" th:href="@{/static/plugin/layui/css/layui.css}" media="all" />
	<link rel="stylesheet" th:href="@{/static/plugin/layui/css/font_eolqem241z66flxr.css}" media="all" />
	<link rel="stylesheet" th:href="@{/static/plugin/layui/css/news.css}" media="all" />
</head>
<body>
    <div class="layui-container">
		<!--   附件区域	 -->
		<div>
			<fieldset class="layui-elem-field layui-field-title">
				<legend>附件区域</legend>
				<div class="layui-elem-quote">
					<div class="layui-form-item">
						<label for="clspath" class="layui-form-label">上传类路径:</label>
						<input type="text" id="clspath" name="clspath"  th:value="${clspath != '' ?clspath:'请输入类路径'}" class="layui-input">
					</div>

					<div class="layui-input-inline" style="padding-top: 9px;">
						<p><i class="required-red" style="font-style: normal;">温馨提示：</i>
							<span class="layui-inline">当前应上传<b  th:if="${clspath ne null}" th:text="${clspath}"></b> class文件!</span>
							<br><b class="layui-inline">只支持上传.class格式,且50MB左右的文件!</b>
						</p>
					</div>
					<div class="layui-input-block">
						<div class="layui-upload">
							<div style="float: right;margin-bottom: 5px;">
								<button type="button" class="layui-btn layui-btn-primary layui-btn-sm" id="fileSelect"><i class="zkuasgm-icon" style="margin-right: 3px;color: #009688;">&#xe6b4;</i>选择多文件</button>
								<button type="button" class="layui-btn layui-btn-primary layui-btn-sm" id="fileUpload"><i class="zkuasgm-icon" style="margin-right: 3px;color: #009688;">&#xe6b5;</i>开始上传</button>
							</div>
							<div class="layui-upload-list">
								<table class="layui-table">
									<thead>
									<tr><th>文件名</th>
										<th>大小</th>
										<th>状态</th>
										<th>操作</th>
									</tr></thead>
									<tbody id="fileList"></tbody>
								</table>
							</div>
						</div>
					</div>

				</div>
			</fieldset>
		</div>
    </div>
	<script type="text/javascript" th:src="@{/static/plugin/layui/layui.js}"></script>
	<script type="text/javascript" th:src="@{/static/js/iot/file_upload.js}"></script>
</body>
</html>